const path = require('path')
const url = require('url')


function resolve(dir) {
    return path.join(__dirname, dir)
}


module.exports = {
    devServer: {

        // 服务器代理
        proxy: {
            '/api': {
                target: 'http://localhost/api',
                // 是否跨域
                changeOrigin: true,
                pathRewrite: {
                    '^/api': ''
                }
            }
        }
    }
}